/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package website.impl;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.internal.cdo.CDOObjectImpl;

import website.Entity;
import website.Form;
import website.Page;
import website.WebsitePackage;
import website.operationType;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Form</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link website.impl.FormImpl#getSuccessPage <em>Success Page</em>}</li>
 *   <li>{@link website.impl.FormImpl#getTags <em>Tags</em>}</li>
 *   <li>{@link website.impl.FormImpl#getErrorPage <em>Error Page</em>}</li>
 *   <li>{@link website.impl.FormImpl#getType <em>Type</em>}</li>
 *   <li>{@link website.impl.FormImpl#getEntity <em>Entity</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class FormImpl extends CDOObjectImpl implements Form {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected FormImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected EClass eStaticClass() {
		return WebsitePackage.Literals.FORM;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected int eStaticFeatureCount() {
		return 0;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Page getSuccessPage() {
		return (Page)eGet(WebsitePackage.Literals.FORM__SUCCESS_PAGE, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSuccessPage(Page newSuccessPage) {
		eSet(WebsitePackage.Literals.FORM__SUCCESS_PAGE, newSuccessPage);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList getTags() {
		return (EList)eGet(WebsitePackage.Literals.FORM__TAGS, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Page getErrorPage() {
		return (Page)eGet(WebsitePackage.Literals.FORM__ERROR_PAGE, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setErrorPage(Page newErrorPage) {
		eSet(WebsitePackage.Literals.FORM__ERROR_PAGE, newErrorPage);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public operationType getType() {
		return (operationType)eGet(WebsitePackage.Literals.FORM__TYPE, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setType(operationType newType) {
		eSet(WebsitePackage.Literals.FORM__TYPE, newType);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Entity getEntity() {
		return (Entity)eGet(WebsitePackage.Literals.FORM__ENTITY, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setEntity(Entity newEntity) {
		eSet(WebsitePackage.Literals.FORM__ENTITY, newEntity);
	}

} //FormImpl
